﻿@{
    ViewBag.Title = "Index";
}

<h2>@S("Welcome to our website!")</h2>

@if( User.Identity.IsAuthenticated )
{
    <p>@R( "Hello: {0}", null, User.Identity.Name )</p>
    <p>@S( "You are logged as: {0}", null, User.Identity.Name )</p>
    <p>@Html.ActionLink( R( "log off" ), "LogOff", "Account" ) | @Html.ActionLink( R( "go to your profile" ), "Profile", "Account" )</p>
    
    <p>@Html.ActionLink( R( "Go to admin area" ), "Index", "Home", new { area = "admin" }, null )</p>
}
else
{
    <p>@S( "You are not logged in, please" ) @Html.ActionLink( R( "log on" ), "LogOn", "Account" ) @S( "to edit texts" )</p>
}

<p>@S("Two the same strings on one page")</p>
<p>@S("Two the same strings on one page")</p>